<?php

class pelanggan{
	
	// Class Constructor
	public function __construct(){
		$this->db = new DBClass();
	}
	
	public function getPelanggan(){
		
		$query = "Select * from pelanggan";
		$rows = $this->db->getRows($query);
		
		return $rows;
	}

	public function get_data(){
		$query = "select idadmin, username, fullname, email from admin 
			where username='".$_COOKIE['c_usr']."'";

		$rows = $this->db->getRows($query);

		return $rows[0];	
	}

}